package fat3kb.everything.spring;

import org.springframework.core.io.ClassPathResource;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;

/**
 * Created by IntelliJ IDEA.
 * User: antonbern
 * Date: 09.10.2007
 * Time: 20:16:44
 * To change this template use File | Settings | File Templates.
 */
public class SpringUtil {
	private static final BeanFactory springFactory = new XmlBeanFactory(new ClassPathResource("/applicationContext.xml"));

	public static Object getBean(String beanId) {
		return springFactory.getBean(beanId);
	}
}
